package com.example.ctrip.service.Impl;


import com.example.ctrip.dao.OrderInfoDao;
import com.example.ctrip.entity.OrderTicketInfo;
import com.example.ctrip.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("orderInfoServiceImpl")
public class OrderInfoServiceImpl implements OrderInfoService {

    @Autowired
    OrderInfoDao orderInfoDao;


    @Override
    public OrderTicketInfo selectIdByOrderId(String orderId) {
        return orderInfoDao.selectIdByOrderId(orderId);
    }

    @Override
    public int insertOrderInfo(OrderTicketInfo orderTicketInfo) {
        return orderInfoDao.insertOrderInfo(orderTicketInfo);
    }

    @Override
    public OrderTicketInfo selectIdByDDBH(String ddbh) {
        return orderInfoDao.selectIdByDDBH(ddbh);
    }

    @Override
    public int updatePaydata(String ddbh, String payData,String orderNo) {
        return orderInfoDao.updatePaydata(ddbh,payData,orderNo);
    }
}
